a {
  text-decoration: none;
}

p,
input {
  outline: none;
  padding: 0;
  margin: 0;
  border: none;
}

.layout {
  display: flex;
}

.header,.layout{
  margin: auto
}
header {
  width: 870px;
  height: 48px;
}

article {
  width: 870px;
  justify-content: space-between;
  align-items: center;
}

article > form {
  width: 270px;
  height: 220px;
  position: relative;
  margin-top: 40px;
}

article > form > p > label {
  font-size: 14px;
  color: #666;
  display: inline-block;
  justify-content: space-between;
  align-items: center;
}

article > form > p > label > span {
  position: relative;
}

article > form > p > label > span::after {
  display: inline-block;
  content: "";
  width: 10px;
  height: 13px;
  background-image: url("../img/sprite_webpage.png");
  background-position: -15px -59px;
  margin-left: 8px;
}

article > form > input:not(:last-of-type) {
  height: 35px;
  width: 238px;
  border: 1px solid #aaa;
  margin: 10px 0 6px;
  padding-left: 32px;
}

article > form::before {
  display: inline-block;
  content: "";
  width: 18px;
  height: 17px;
  background-image: url("../img/login_icon01.png");
  position: absolute;
  top: 38px;
  left: 8px;
}

article > form::after {
  display: inline-block;
  content: "";
  width: 18px;
  height: 17px;
  background-image: url("../img/login_icon02.png");
  position: absolute;
  top: 90px;
  left: 8px;
}

article > form > p {
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

article > form > p a {
  color: #db413a;
  font-size: 14px;
}

article > form > p > span > input {
  margin-right: 5px;
}

article > form input:focus {
  border: 1px solid red;
}

article > form > input:last-of-type {
  width: 270px;
  height: 34px;
  background-color: #db413a;
  color: #fff;
  margin: 18px 0 12px;
}

article > form > p:last-of-type {
  color: #666;
}

.jingxi > input:checked ~ i {
  display: block;
}

.jingxi > i {
  display: none;
  position: fixed;
  content: "";
  background-image: url("../img/timg(7).jpg");
  width: 530px;
  height: 276px;
  top: 30%;
  left: 20%;
  z-index: 1;
}

input[id="erweima"],
.erweima1 {
  display: none;
}

input[id="erweima"]:checked ~ div {
  width: 280px;
  height: 230px;
  background-color: #fff;
  display: block;
  position: absolute;
  right: 511px;
  top: 223px;
  z-index: 1;
  text-align: center;
}

input[id="erweima"]:checked ~ div > p {
  margin: 10px 0;
  color: red;
}

footer {
  text-align: center;
  color: #ccc;
  font-size: 12px;
  position: fixed;
  width: 100%;
  bottom: 0;
  height: 100px;
}

